

import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter as Router } from 'react-router-dom'
import { createStore, applyMiddleware, compose } from "redux"
import rootReducer from "./reducers"
import { createLogger } from 'redux-logger'
import thunk from 'redux-thunk'
import Root from './containers/Root'


const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(rootReducer,composeEnhancers(applyMiddleware(thunk,createLogger())))

 ReactDOM.render(
    <Router >
          <Root store={store} />
    </Router >
    ,
    document.getElementById('root')
);